home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 66
/
Vol 66.iso
/
games
/
balones.swf
/
scripts
/
frame_31
/
DoAction.as
Wrap
Text File
|
2013-04-24
|
1KB
|
44 lines
_root.mcB.onLoad = function()
{
this.funcInit = function()
{
this.nTypeCount = 0;
this.arrType = new Array();
_root.funcType();
_root.mcB.arrType[12] = 12;
this.nCount = 0;
_root.arrM = new Array();
i = 0;
while(i <= 7)
{
_root.arrM[i] = new Array();
j = 0;
while(j <= 7)
{
this.pathM = eval("this.mcM" + i + j);
this.pathM.onLoad = function()
{
ranN = Math.random();
if(ranN < 0.005)
{
_root.arrM[i][j] = this.nType = _root.mcB.arrType[12];
}
else
{
_root.arrM[i][j] = this.nType = _root.mcB.arrType[Math.floor(Math.random() * _root.nType)];
}
this.gotoAndStop(this.nType);
this.mcM.gotoAndStop("flD");
};
this.pathM.onLoad();
j++;
}
i++;
}
};
this.funcInit();
_root.funcinitMatchCheck();
};
_root.mcB.onLoad();
_root.funcInitRound();